import { BasicColumn, FormSchema } from '@/components/Table';

export const tableColumns: BasicColumn[] = [
  { title: '订单编号', dataIndex: 'orderCode' },
  { title: '名称', dataIndex: 'spuName' },
  { title: '手机号', dataIndex: 'orderPlacerUserPhone' },
  { title: '金额（元）', dataIndex: 'settlementAmount' },
  { title: '下单时间', dataIndex: 'orderTime' },
  { title: '付款时间', dataIndex: 'paidTime' },
];

export const tableFormSchema: FormSchema[] = [
  {
    field: 'orderPlacerUserPhone',
    label: '手机号',
    component: 'Input',
    colProps: { span: 6 },
  },
  {
    field: 'paidTime',
    label: '付款时间',
    component: 'RangePicker',
    colProps: { span: 6 },
  },
];
